body {
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #343a40;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #2c3136;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

#sidebar ul li a:hover {
    background: #2c3136;
    color: #00ffff;
}

#sidebar ul li.active > a {
    background: #2c3136;
    color: #00ffff;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    background: #f0f2f5;
    padding: 20px;
}

.navbar {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 15px;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

/* 欢迎页面样式 */
.welcome-header {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-header h1 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    margin: 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 3em;
    color: #00b4db;
    margin-bottom: 20px;
}

.action-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.action-card p {
    color: #666;
    margin-bottom: 20px;
}

/* 课程管理页面样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-header h2 {
    margin: 0;
    color: #2c3e50;
}

.course-list {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.course-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #00ffff, #0088ff);
    border-radius: 4px 0 0 4px;
}

.course-card h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
    padding-left: 15px;
}

.course-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.course-info span {
    color: #4a5568;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    min-width: 0;
}

.course-info span i {
    margin-right: 8px;
    color: #00b4db;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 描述文字容器样式 */
.description-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* 描述文字标签样式 */
.description-label {
    flex-shrink: 0;
    margin-right: 8px;
}

/* 描述文字截断样式 */
.description-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    cursor: pointer;
}

/* 悬浮提示框样式 */
.description-tooltip {
    visibility: hidden;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 300px;
    width: max-content;
    word-wrap: break-word;
    white-space: normal;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* 显示悬浮提示 */
.description-container:hover .description-tooltip {
    visibility: visible;
    opacity: 1;
}

/* 添加小箭头 */
.description-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.8);
}

/* 文件上传状态样式 */
.course-info span.file-status {
    position: relative;
    padding-left: 25px;
}

.course-info span.file-status::before {
    content: '';
    position: absolute;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.course-info span.status-uploaded::before {
    background-color: #52c41a;
    box-shadow: 0 0 8px rgba(82, 196, 26, 0.5);
}

.course-info span.status-not-uploaded::before {
    background-color: #ff4d4f;
    box-shadow: 0 0 8px rgba(255, 77, 79, 0.5);
}

.course-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eef2f7;
}

.course-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.course-actions button i {
    font-size: 16px;
}

.course-actions .btn-primary {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border: none;
}

.course-actions .btn-danger {
    background: #ff4d4f;
    border: none;
}

.course-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 用户管理页面样式 */
.user-list {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.user-table th {
    background: #f8f9fa;
    color: #343a40;
}

.user-table tr:hover {
    background: #f8f9fa;
}

/* 个人中心页面样式 */
.profile-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-header h2 {
    color: #2c3e50;
    margin: 0;
}

.profile-info {
    display: grid;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item label {
    min-width: 120px;
    color: #666;
    font-weight: 600;
}

.info-item span {
    color: #2c3e50;
}

.profile-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 模态框样式 */
.modal-content {
    background: #fff;
    border-radius: 10px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 20px;
}

.form-label {
    font-weight: bold;
    color: #343a40;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
}

.form-control:focus {
    border-color: #00ffff;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 255, 0.25);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0088ff);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    .action-card {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* 内容区域样式优化 */
.content-wrapper {
    background: transparent;
    padding: 0;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
    display: block;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 导航栏样式优化 */
#sidebarCollapse {
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

#sidebarCollapse:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 179, 219, 0.4);
}

.nav-link {
    color: #2c3e50 !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #00b4db !important;
}

.welcome-banner {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 50, 100, 0.3);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    text-align: right;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    border: 1px solid rgba(0, 100, 150, 0.5);
}

.welcome-text h2 {
    font-size: 1em;
    margin-bottom: 3px;
    font-weight: 500;
    color: #ffffff;
}

.welcome-text p {
    font-size: 0.8em;
    opacity: 1;
    margin: 0;
    color: #ffffff;
}

#welcomeUsername {
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* 分页样式 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pagination button {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pagination .page-info {
    font-size: 14px;
    color: #666;
    padding: 0 10px;
}

/* 空数据状态样式 */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-data p {
    font-size: 16px;
    margin: 0;
}

/* 文件状态和链接样式 */
.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-link {
    color: #00b4db;
    text-decoration: none;
    font-weight: 500;
}

.file-link:hover {
    text-decoration: underline;
}

.file-name {
    color: #52c41a;
    font-weight: 500;
}

/* 文件上传区域样式 */
.current-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.upload-new {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

.remove-file {
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    color: #ff4d4f;
    border: 1px solid #ff4d4f;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-file:hover {
    background: #fff1f0;
}

.remove-file i {
    font-size: 10px;
}

/* 文件上传状态提示 */
.file-status {
    padding: 12px;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-status:hover {
    border-color: #00b4db;
}

.file-status.status-uploaded {
    border-color: #52c41a;
    background: #f6ffed;
}

.file-status.status-not-uploaded {
    border-color: #ff4d4f;
    background: #fff2f0;
} 